//
//  UIColor+Extension.swift
//  01-表情键盘
//
//  Created by 陈宗毅 on 15/12/28.
//  Copyright © 2015年 czy. All rights reserved.
//

import UIKit

extension UIColor {

    //随机色
    class  func randomColor() -> UIColor {
        return UIColor(red: randomValue(), green: randomValue(), blue: randomValue(), alpha: 1)
    }
    
    ///返回0-1之间的随机值
    private class func randomValue() ->CGFloat {
        
        return CGFloat(arc4random_uniform(256))/255.0
    }
    
}
